package edu.bigdata;

/**
 * @Author zjh
 * @Date 2022-04-20 上午 8:27
 **/
public enum GLOBAL_STATE {
    //运行方式 自动定时开关灯
    RUN_MODE_STATE_AUTO(1, "自动定时开关灯"),
    //运行方式 人工开关灯
    RUN_MODE_STATE_HM(2, "人工开关灯"),
    //灯泡开关状态 开
    SWITCH_STATE_ON(3, "当前灯泡是开启的"),
    //灯泡开关状态 关
    SWITCH_STATE_OFF(4, "当前灯泡是关闭的"),
    //灯泡异常
    HEALTH_STATE(5,"灯泡已损坏");

    private final Integer key;
    private final String value;

    private GLOBAL_STATE(Integer key, String value) {
        this.key = key;
        this.value = String.format(value);
    }

    public Integer getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
